package com.orangelife.service.propFeePollfee;

import java.util.List;
import java.util.Map;

import com.orangelife.exception.AppBizException;
import com.orangelife.service.propFeePollfee.model.PollfeeEditDto;
import com.orangelife.service.propFeePollfee.model.PropFeePollfeeDto;

/*****************************************************************
 * Copyright(C) ORANGELIFE Corporation 2015. All Rights Reserved.
 *****************************************************************/
/*
 * ============================================================== 功能名
 * PropFeePollfee类的 service层的增删改查
 * 
 * @author @author
 * 
 * @version 1.1.0
 * 
 * @date 2016-07-25 14:36:53
 * ==============================================================
 */
public interface IPropFeePollfeeService {

	/**
	 * 用途 添加propFeePollfee（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 14:36:53
	 * @param propFeePollfee
	 * @return
	 * @throws AppBizException
	 */
	public int addPropFeePollfee(PropFeePollfeeDto propFeePollfee)
			throws AppBizException;

	/****
	 * 批量添加
	 * 
	 * @param propFeePollfees
	 * @return
	 * @throws AppBizException
	 */
	public int addPropFeePollfee(List<Map<String, Object>> propFeePollfees)
			throws AppBizException;

	/**
	 * 用途 修改propFeePollfee（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 14:36:53
	 * @param propFeePollfee
	 * @return
	 * @throws AppBizException
	 */

	public int editPropFeePollfee(PropFeePollfeeDto propFeePollfee)
			throws AppBizException;

	/**
	 * 用途 单个查询 （橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 14:36:53
	 * @param propFeePollfeeID
	 * @return
	 * @throws AppBizException
	 */

	public PropFeePollfeeDto findPropFeePollfeeByID(String propFeePollfeeID)
			throws AppBizException;

	/**
	 * 用途 逻辑删除（橙子生活）
	 * 
	 * @author
	 * @date创建时间 2016-07-25 14:36:53
	 * @param propFeePollfeeID
	 * @return
	 * @throws AppBizException
	 */
	public int deletePropFeePollfeeByLogic(String propFeePollfeeID)
			throws AppBizException;

	/**
	 * 用途 查询列表 （橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizExceptionception
	 */
	public List<Map<String, Object>> findPropFeePollfeeByPage(String commID,
			String ruleID, String tsCreate, String search, int pageNo,
			int pageSize) throws AppBizException;

	/***
	 * 
	 * @param commID
	 * @param ruleID
	 * @param tsCreate
	 * @param search
	 * @return
	 * @throws AppBizException
	 */
	public List<Map<String, Object>> findPropFeePollfee(String commID,
			String ruleID, String tsCreate, String search)
			throws AppBizException;

	/**
	 * 用途 查询列表（返回对对象）（橙子生活）
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * @param servletRequest
	 * @param search
	 *            搜索内容
	 * @param tsCreate
	 *            创建时间
	 * @param pageNo
	 *            页码
	 * @param pageSize
	 *            页面大小
	 * @return
	 * @throws AppBizException
	 */
	public List<PropFeePollfeeDto> getPropFeePollfeeByPage(String tsCreate,
			String search, int pageNo, int pageSize) throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeePollfee（橙子生活）(返回Map<String, Object>)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * @param pollfeeID
	 *            (非必填字段)
	 * 
	 * @param ruleID
	 *            (非必填字段)
	 * 
	 * @param status
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param memberID
	 *            (非必填字段)
	 * 
	 * @param apartmentID
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> selectPropFeePollfeeByRelevantID(
			String pollfeeID, String ruleID, String status, String commID,
			String memberID, String apartmentID) throws AppBizException;

	/**
	 * 用途 根据一张表内的所有ID查询propFeePollfee（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * @param pollfeeID
	 *            (非必填字段)
	 * 
	 * @param ruleID
	 *            (非必填字段)
	 * 
	 * @param status
	 *            (非必填字段)
	 * 
	 * @param commID
	 *            (非必填字段)
	 * 
	 * @param memberID
	 *            (非必填字段)
	 * 
	 * @param apartmentID
	 *            (非必填字段)
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeePollfeeDto> findPropFeePollfeeByRelevantID(
			String pollfeeID, String ruleID, String status, String commID,
			String memberID, String apartmentID, String period)
			throws AppBizException;

	/**
	 * 用途 批量查询propFeePollfee（橙子生活）(返回对象)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<PropFeePollfeeDto> bauthfindPropFeePollfee(
			List<String> propFeePollfeeIDs) throws AppBizException;

	/**
	 * 用途 批量查询propFeePollfee（橙子生活）(返回Map)
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public List<Map<String, Object>> bauthfindPropFeePollfeeByMap(
			Map<String, Object> propFeePollfee) throws AppBizException;

	/**
	 * 用途 清除
	 * 
	 * @author
	 * @date 创建时间 2016-07-25 14:36:53
	 * 
	 * @return
	 * @throws AppBizException
	 */

	public void clearCache() throws AppBizException;

	/***
	 * 
	 * @param pPropFeePollfeeDtos
	 * @return
	 * @throws AppBizException
	 */
	public int bauthaddPropFeePollfee(
			List<PropFeePollfeeDto> pPropFeePollfeeDtos) throws AppBizException;
	
	
	/***
	 * 
	 * @param pPropFeePollfeeDtos
	 * @return
	 * @throws AppBizException
	 */
	public  List<Map<String, Object>> getProllfeeByMap(
			Map<String,Object> params) throws AppBizException;
	

	/***
	 * 
	 * @param pPropFeePollfeeDtos
	 * @return
	 * @throws AppBizException
	 */
	public  int  editProllfee(
			PollfeeEditDto pollfeeEditDto) throws AppBizException;

}